<template>
    <van-nav-bar title="详情" left-text="返回" :fixed="true" left-arrow @click-left="onClickLeft" />

    <div style="height: 50px;"></div>
    <SwipeImage2 />

    <div style="background-color: white;border-radius: 5px;height: 80px;margin-top: 10px;">
        <div style="display: flex;padding: 10px 10px;">
            <div style="flex: 1;font-weight: bold;">小布丁</div>
            <div class="l1">关注</div>
        </div>
        <div style="padding-left: 10px;">
            <span><van-icon name="star" color="#ff976a" /></span> <span
                style="font-size: 12px;margin-left: 1px;margin-right: 10px;"> 5.0</span>
            <span style="margin-right: 3px;"><van-icon name="like" color="#ff976a" /></span><span
                style="font-size: 12px;margin-left: 1px;margin-right: 10px;">99</span>
            <span style="font-size: 12px;">已服务：998</span>
        </div>
    </div>

    <div style="background-color: white;border-radius: 5px;height: 80px;margin-top: 10px;padding: 10px;">
        <div style="font-size: 16px;font-weight: bold;">简介</div>
        <div style="font-size: 12px;height: 30px;line-height: 20px;margin-top: 15px;">
            正规绿色服务平台。照片真实，性格开朗，手法专业，欢迎下单，期待与你相遇《酒店单不接》</div>
    </div>

    <div style="background-color: white;border-radius: 5px;height: 80px;margin-top: 10px;padding: 10px;">
        <van-cell-group>
            <van-cell title="服务" value="20:30" />
            <van-cell title="全资格认证" is-link />
            <van-cell title="保障" value="未服务全额退·爽约包赔·不满意退" is-link />
        </van-cell-group>
    </div>

    <div class="aa">
        <div style="display: flex;font-weight: bold;margin:20px;">
            <div style="flex: 1;">评论用户（20）</div>
            <div>好评度5.0</div>
        </div>

        <div class="sss" v-for="item in 20" :key="item" style="height: 70px;border-bottom: 1px solid #e5dddd;">
            <div style="display: flex;">
                <div style="flex: 1;">
                    <div style="display: flex;">
                        <div>
                            <van-image width="2rem" height="2rem" round  src="https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg" />
                        </div>
                        <div style="flex: 1;margin-left: 8px;">
                            <div style="font-size: 12px;font-weight: bold;">张三</div>
                            <div style="font-size: 10px;color: gray;">2024-01-01 19:20</div>
                        </div>
                    </div>
                   
                </div>
                <div style="color: #ff976a;"><van-rate v-model="value" color="#ff976a" /> 5.0</div>
            </div>

            <div style="font-size: 10px;margin-top: 20px;">技术好，专业、服务周到</div>
        </div>
    </div>

</template>

<script setup lang="ts" name="service">
import { ref } from 'vue'
import SwipeImage2 from '@/components/SwipeImage2.vue'

let value = ref(5)
function onClickLeft() {
    history.back();
}
</script>

<style scoped>
.sss {
    background: linear-gradient(to right, rgb(244, 245, 245), #e5c9bc);
    padding: 20px;
}

.aa {

    min-height: 500px;
    margin: 10px;
    margin-top: 85px;
    border-radius: 10px;
    /* border:  1px solid red; */
    padding: 5px;
    /* background: linear-gradient(to right, rgb(244, 245, 245), rgba(172, 57, 166, 0.578)); */
    background: linear-gradient(to right, rgb(244, 245, 245), #e2c1b2);
}

.l1 {
    width: 60px;
    height: 20px;
    border: 1px solid green;
    text-align: center;
    font-size: 12px;
    line-height: 20px;
    border-radius: 12px;
    background-color: #9db69d4d;
    color: #3f693f;
}
</style>